package com.bgs.eat.roleBack.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @ClassName RoleBackEntity
 * @Description TODO
 * @Author cjl
 * @Date 2022/10/12 8:39
 **/
@Data
@Table(name = "role_back")
public class RoleBackEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id; //角色id

    private String roleName; //角色名称

    private String menuIds; //菜单ids

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date  createTime; //创建时间

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date  updateTime; //修改时间

    private String back; //备注

    private Integer delFlag; // 删除标识   (0未删除 1已删除)

}
